package com.ruoyi.housing.mapper;

import java.util.List;
import com.ruoyi.housing.domain.Housing;

/**
 * 房源配置Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-12
 */
public interface HousingMapper 
{
    /**
     * 查询房源配置
     * 
     * @param id 房源配置主键
     * @return 房源配置
     */
    public Housing selectHousingById(Long id);

    /**
     * 查询房源配置列表
     * 
     * @param housing 房源配置
     * @return 房源配置集合
     */
    public List<Housing> selectHousingList(Housing housing);

    /**
     * 新增房源配置
     * 
     * @param housing 房源配置
     * @return 结果
     */
    public int insertHousing(Housing housing);

    /**
     * 修改房源配置
     * 
     * @param housing 房源配置
     * @return 结果
     */
    public int updateHousing(Housing housing);

    /**
     * 删除房源配置
     * 
     * @param id 房源配置主键
     * @return 结果
     */
    public int deleteHousingById(Long id);

    /**
     * 批量删除房源配置
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHousingByIds(Long[] ids);
}
